package com.itheima.web.service.impl.cms;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.service.cms.CmsSubjectProductRelationService;
import com.itheima.vo.cms.CmsSubjectProductRelation;
import com.itheima.web.mapper.cms.CmsSubjectProductRelationMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class CmsSubjectProductRelationServiceImpl extends ServiceImpl<CmsSubjectProductRelationMapper, CmsSubjectProductRelation> implements CmsSubjectProductRelationService {

    @Autowired
    private CmsSubjectProductRelationMapper csprMapper;

    @Override
    public List<CmsSubjectProductRelation> getByProductId(Integer id) {
        return csprMapper.getByProductId(id);
    }
}
